<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<script type="text/javascript">
		var kongge = '';
		var xingxing = '';
		for (var i = 1; i <= 5; i++)
		{
			for (var j = 1 ; j <= 5 - i ; j++)
			{
				kongge += ' ';
			}
			for (var k = 1 ; k <= (2 * i - 1); k++)
			{
				xingxing += '*';
			}
			console.log(kongge + xingxing + '\n');
			//console.log(kongge.length);
			var kongge = '';
			var xingxing = '';
		}
	</script>
</head>
<body>
	
</body>
</html>
